<template>
	<view class="z-cell">
		<view class="z-cell-item">
			<view class="label">{{label}}</view>
			<slot style="flex: 1;"></slot>
		</view>
		<view class="line">
		</view>
	</view>
	
</template>

<script>
	export default {
		name:"zy-form-item",
		data() {
			return {
				
			};
		},
		props:{
			label: {
				type: String,
			},
		}
	}
</script>

<style lang="scss" scoped>
	.z-cell{
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		
		.z-cell-item{
			display: flex;
			flex-direction: row;
			align-items: center;
			background-color: white;
			padding: 30rpx;
			
			.label{
				font-size: 28rpx;
				color: #555;
				width: 150rpx;
			}
		}
		
		.line{
			width: 100%;
			height: 1px;
			content: '';
			background-color: '#8a8a8a';
		}
	}
	
</style>